import { IsOptional } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';
export class CreateUserDto {
  @ApiProperty({ description: '人员姓名' })
  @IsOptional()
  avatar: string;

  @ApiProperty({ description: '账户' })
  @IsOptional()
  username: string;

  @ApiProperty({ description: '密码' })
  @IsOptional()
  password: string;

  @ApiProperty({ description: '角色' })
  @IsOptional()
  role: string;

  @ApiProperty({ description: '姓名' })
  @IsOptional()
  name: string;
}
export class QueryUserDto {
  username: string;
  phone: number;
  department: string;
}

export class QueryByIdDto {
  id: number;
}
